

class Common {
  int? commonId;
  String? avatar;
  String? content;
  String? nickname;
  int? like;
  String? path;

  Common({this.commonId,this.avatar, this.content, this.nickname, this.like, this.path});

  Common.fromJson(Map<String, dynamic> json) {
    commonId = json['commonId'];
    avatar = json['avatar'];
    content = json['content'];
    nickname = json['nickname'];
    like = json['like'];
    path = json['path'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['commonId'] = commonId;
    data['avatar'] = avatar;
    data['content'] = content;
    data['nickname'] = nickname;
    data['like'] = like;
    data['path'] = path;
    return data;
  }
}